package com.example.chapter04;

import java.util.Random;

/**
 * 4.for-in 语法
 * @date 2024/4/29
 */
public class ForlnFloat {
    public static void main(String[] args) {
        Random rand = new Random(47);
        float[] f = new float[10];
        for(int i=0; i < 10; i++){
            f[i] = rand.nextFloat();
        }
        for(float x : f){
            System.out.println(x);
        }
    }
}
